package com.mysnail.controller;


import com.mysnail.User;
import com.mysnail.method.SortMathod;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/")
public class Cp1Controller {

    @RequestMapping(value = "/cp1")
    public ModelAndView cp1index(){
        ModelAndView mv = new ModelAndView("cp1");
        User user  = new User();
        user.setName("freemarker");
        mv.addObject("sort_int",new SortMathod());
        mv.addObject("userObj",user);
        return mv;

    }
}
